package com.yunhe.option.config;

import org.neo4j.ogm.session.SessionFactory;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.neo4j.transaction.Neo4jTransactionManager;

@Configuration
public class TransactionManagerConfig {

    @Bean(name = "transactionManager")
    public Neo4jTransactionManager get(SessionFactory sessionFactory) {
        return new Neo4jTransactionManager(sessionFactory);
    }
}
